package lk.mrt.cse.wihidum.storage;

import java.util.*;

public interface BrokerSubscriptionManager
{
    /**
     * Saves a BrokerSubscription
     *
     * @param brokerSubscription Subscription to be saved which arrived form another broker
     * @return
     */
    public boolean saveBrokerSubscription (BrokerSubscription brokerSubscription);

    /**
     *Returns an array list of BrokerSubscriptions those matches with a given filter ( eg: Topic)
     * @param filter  Topic of the subscriptions to be filtered
     * @return
     */
    public ArrayList<BrokerSubscription> getBrokerSubscriptionsFilteredByTopic (String filter);

}
